package group.sicher.salesman.controller;

import group.sicher.salesman.dto.input.BankBranchesInput;
import group.sicher.salesman.dto.input.CitiesInput;
import group.sicher.salesman.dto.output.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.List;

/**
 * @author Donald
 * @description
 * @date 2019-07-03
 **/
@Api(tags = "【业务员】公共管理")
@RestController
@RequestMapping("/")
public class PublicController {
    @ApiOperation("省市区接口")
    @PostMapping("/cities")
    public List<CitiesOutput> cities(@Valid @RequestBody CitiesInput input) {
        return null;
    }

    @ApiOperation("经营类目接口")
    @PostMapping("/business/categories")
    public List<BusinessCategoriesOutput> categories() {
        return null;
    }

    @ApiOperation("证件类型")
    @PostMapping("/idcard/types")
    public List<IdcardTypeOutput> idCardTypes() {
        return null;
    }

    @ApiOperation("银行总行")
    @PostMapping("/banks")
    public List<BanksOutput> banks() {
        return null;
    }

    @ApiOperation("银行支行")
    @PostMapping("/banks/branches")
    public List<BankBranchesOutput> bankBranches(@Valid @RequestBody BankBranchesInput input) {
        return null;
    }
}
